<?php	// Connect to server and select database.
	function connect_db(){
		$host="localhost"; // Host name
		$username="progin"; // Mysql username
		$password="progin"; // Mysql password
		$db_name="progin_171_13509045"; // Database name
		$stat=mysql_connect($host, $username, $password)or die("cannot connect");
		if($stat) $stat=mysql_select_db($db_name)or die("cannot select DB");
		return $stat;
	}
?>
